//
//  XRProgressSlider.h
//  avplayer
//
//  Created by 谢汝 on 2017/12/15.
//  Copyright © 2017年 谢汝. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,XRProgressSliderDirection) {
    XRProgressSliderDirectionHorizonal = 0,
    XRProgressSliderDirectionVertical = 1
};

@interface XRProgressSlider : UIControl

@property(nonatomic,assign)CGFloat minValue;
@property(nonatomic,assign)CGFloat maxValue;
@property(nonatomic,assign)CGFloat value;
@property(nonatomic,assign)CGFloat sliderPercent;
@property(nonatomic,assign)CGFloat bufferPercent;

@property(nonatomic,assign)BOOL isSliding;


@property(nonatomic,assign)XRProgressSliderDirection direction;
- (id)initWithFrame:(CGRect)frame direction:(XRProgressSliderDirection)direction;

@end
